<?php /* Smarty version 2.6.16, created on 2007-05-16 14:29:09
         compiled from /home/.batly/roamzero/Framework/Site/Peopletab/Templates/Default/templates/CP/Default.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', '/home/.batly/roamzero/Framework/Site/Peopletab/Templates/Default/templates/CP/Default.tpl', 33, false),)), $this); ?>
<p class="block">
	Welcome to the control panel.
</p>

<div class="block">
	<h3>Unread Messages: <b><?php echo $this->_tpl_vars['unread']; ?>
</b></h3>
</div>

<div class="block">
	<h3>Currently Browsing Your Page: </h3>
	<?php if ($this->_tpl_vars['currentlyBrowsing']): ?>
		<ul>
		<?php $_from = $this->_tpl_vars['currentlyBrowsing']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
    	<li><a href="http://<?php echo $this->_tpl_vars['item']['domain']; ?>
/<?php echo $this->_tpl_vars['item']['userName']; ?>
"><?php echo $this->_tpl_vars['item']['userName'];  if ($this->_tpl_vars['item']['siteDomain'] != $this->_tpl_vars['site']->domain): ?>@<?php echo $this->_tpl_vars['item']['siteDomain'];  endif; ?></li>
    	<?php endforeach; endif; unset($_from); ?> 
		</ul>
	<?php else: ?>
		No users currently browsing your page.
	<?php endif; ?>
</div>

<div class="block">
	<h3>Recent Visitors</h3>
	<?php if ($this->_tpl_vars['last15']): ?>
		<table width="100%" id="recentVisits" class="cpTable">
		<tr class="cpTableHeader">
			<td>User</td>
			<td>Last Seen</td>
		</tr>
		<?php $_from = $this->_tpl_vars['last15']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
		<tr class="cpTableRow">
    		<td><a href="http://<?php echo $this->_tpl_vars['item']['siteDomain']; ?>
/<?php echo $this->_tpl_vars['item']['userName']; ?>
"><?php echo $this->_tpl_vars['item']['userName'];  if ($this->_tpl_vars['item']['siteDomain'] != $this->_tpl_vars['site']->domain): ?>@<?php echo $this->_tpl_vars['item']['siteDomain'];  endif; ?></td>
    		<td><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['dateVisited'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%D %I:%M %p") : smarty_modifier_date_format($_tmp, "%D %I:%M %p")); ?>
</td>
    	</tr>
    	<?php endforeach; endif; unset($_from); ?> 
		</table>
	<?php else: ?>
		No users have visited your page in the last 72 hours.
	<?php endif; ?>
</div>
